package com.example.validdemo.model;

import com.example.validdemo.validator.Validator;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * @author Bx_Hu
 */
@Data
@Accessors(chain = true)
public class Role {
    @NotBlank(message = "角色名必填", groups = {Validator.Add.class, Validator.Update.class})
    private String roleName;

    @NotBlank(message = "角色名类型", groups = {Validator.Add.class, Validator.Update.class})
    private String roleType;
}
